@{
    //DELETE ARTICLE
    var articleId = UrlData[0].AsInt();
    var authorId = 1;
    var result = Blog.DataObject.DeleteArticle(articleId,authorId);
    var action = Page.LocalSiteRoot+"Actions/Admin/ListAllArticle.cshtml";
    if(result<=0){
        Page.ErrorMessage = "Article not deleted";
    }else{
        Page.SuccesMessage = "Article deleted";
    }
    Response.Redirect(Href(action));
}

